<template>
  <nav-bar
    title="关于我们"
    left-text=""
    left-arrow
    @click-left="onClickLeft"
    z-index="1"
  />

  <overlay :show="show" @click="ove" />
  <div class="phone" v-show="pho">
    <p>0517-28003960</p>
    <p>工作时间：周一到周五 9:00-18：00</p>
    <button class="btn1">立即联系</button>
    <button class="btn2">我再想想</button>
  </div>
  <img src="./image/QQ图片20221013205733.jpg" alt="破损" />
  <ul>
    <li>使用条款<icon name="arrow" /></li>
    <li @click="over">联系电话<icon name="arrow" /><span>0517-28003960</span></li>
    <li @click="email">联系邮箱<icon name="arrow" /><span>sevrice@cjkt.com</span></li>
    <li @click="qq">联系客服<icon name="arrow" /></li>
  </ul>
</template>
<script setup>
import "vant/es/toast/style";
import { ref } from "vue";
import { NavBar, Overlay, Button, Toast,Icon } from "vant";
import { useRouter } from "vue-router";
const router = useRouter();
const onClickLeft=()=>{
router.go(-1)
};
const pho = ref(false);
const show = ref(false);
const over = () => {
  show.value = true;
  pho.value = true;
};
const ove = () => {
  show.value = false;
  pho.value = false;
};
const email = () => {
  Toast.fail("未检测到QQ，请先安装QQ~");
};
const qq = () => {
  Toast.fail("邮箱应用未安装，邮箱地址已复制到粘贴板");
};
</script>
<style scoped>
li {
  line-height: 7vh;
  height: 7vh;
  text-indent: 1em;
  border-bottom: 0.0625rem solid #efeeee;
  font-size: .8rem;
}
.phone {
  z-index: 2;
  background-color: white;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 23vh;
  text-align: center;
  line-height: 5vh;
}
.phone p:nth-child(1) {
  font-size: 0.9rem;
  font-weight: 600;
}
.phone p:nth-child(2) {
  color: gray;
  font-size: 0.8rem;
}
.btn1 {
  display: block;
  text-align: center;
  border: none;
  background-color: white;
  color: var(--main-color);
  width: 100%;
}
.phone .btn2 {
  border: none;
  border-top: 1vh solid rgb(241, 243, 249);
  width: 100%;
  display: block;
  background-color: white;
}
img{
  width: 100%;
  height: 20vh;
}
.van-icon{
  float: right;
  margin-right: 2vh;
  color: gray;
  line-height: 7vh;
  font-size: .8rem;
}
ul li span{
  color: gray;
  float: right;
  font-size: .6rem;
}

</style>
